package com.example.androidhive;

/**
 * Created by binh on 01/12/2014.
 */
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;
import android.content.Intent;

public class HomeFragment extends Fragment{
    public HomeFragment(){}

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {


        View rootView = inflater.inflate(R.layout.fragment_search, container, false);
        Button btnRequest = (Button) rootView.findViewById(R.id.btnRequest);
        btnRequest.setOnClickListener(new OnClickListener()
        {
            @Override
            public void onClick(View v)
            {
                // do something
                Intent i = new Intent(getActivity(),MatchSlideActivity.class);
                startActivity(i);
            }
        });
        return rootView;
    }
}
